<?php namespace Phpcmf\Controllers;

class Son extends \Phpcmf\Home\Mform
{

    public function index() {
        $this->_Home_List();
    }

    public function show() {
        $this->_Home_Show();
    }

    protected function _Call_Show($data) {

        list($data, $son) = \Phpcmf\Service::M('player')->get_video_data($data);

        $data['son_list'] = dr_format_son_list($son, $this->index['son_type']);
        $data['son_type'] = dr_son_type($this->index['son_type']);
        $data['ckplayer_config'] = $this->player_config;

        return $data;
    }
}
